package com.shellyan.gmall.rt.util

import java.io.InputStream
import java.util.Properties

/**
 * @author Shelly An
 * @create 2020/9/4 9:44
 */
object ConfigUtil {
  val is: InputStream = ClassLoader.getSystemResourceAsStream("config.properties")
  val properties = new Properties()
  properties.load(is)


  def getConf(name: String) = {
    properties.getProperty(name)
  }
}
